﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Clipping.Infrastructure.Models
{
    public class ClientInfo
    {
        private string _id;
        private string _name;
        private List<ClassInfo> _classes;
        private List<Field> _fields;
        private List<OptionalField> _properties;


        public ClientInfo(string id, string name, List<ClassInfo> classes, List<Field> fields, List<OptionalField> properties)
        {
            this._id = id;
            this._name = name;
            this._classes = classes;
            this._fields = fields;
            this._properties = properties;
        }
        /// <summary>
        /// 获取客户ID
        /// </summary>
        public string Id
        {
            get { return _id; }
        }
        /// <summary>
        /// 获取客户名
        /// </summary>
        public string Name
        {
            get { return _name; }
        }
        /// <summary>
        /// 获取分类信息
        /// </summary>
        public List<ClassInfo> Classes
        {
            get { return _classes; }
        }
        /// <summary>
        /// 获取字段
        /// </summary>
        public List<Field> Fields
        {
            get { return _fields; }
        }
        /// <summary>
        /// 获取属性
        /// </summary>
        public List<OptionalField> Properties
        {
            get { return _properties; }
        }

        public override string ToString()
        {
            return this._name;
        }
    }

}
